package com.sc.nft.req.mallCart;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author：LiGen
 * @Package：com.metago.mallmini.domain.req.cart
 * @Project：meta_mall_mini_app
 * @name：CartListReq
 * @Date：2024/5/16 20:24
 * @Filename：CartListReq
 */
@Data
public class CartListReq {

    @ApiModelProperty("购物车ID集合")
    private List<Long> cartIds;

    @ApiModelProperty("小程序用户id")
    private Long miniUserId;

    public static CartListReq build(List<Long> cartIds, Long miniUserId) {
        CartListReq cartListReq = new CartListReq();
        cartListReq.setCartIds(cartIds);
        cartListReq.setMiniUserId(miniUserId);
        return cartListReq;
    }
}
